/**
* Copyright (c) 2016-2100 yunclouds
*/
package com.yunqian.redot.service;

import com.yunqian.redot.domain.Banner;
import com.yunqian.redot.repository.BannerRepository;
import com.yunqian.service.BaseService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 轮播图管理信息
 *
 * @author zsy
 * 2018-09-29 16:01:12
 */
@Service
@Log4j2
public class BannerService extends BaseService<Banner, Long> {

    @Autowired
    private BannerRepository bannerRepository;

    public List<Banner> getAllByLinkType(Integer linkType){
        return bannerRepository.findAllByLinkType(linkType);
    }

}
